package com.franklin.java.entity.sql;

import java.net.URL;

/**
 * Jdbc连接信息
 * @author Franklin
 * @since 2021/9/24 14:28
 */
public class JdbcInfo {

    /**
     * 用户名
     */
    private String username = "username";

    /**
     * 密码
     */
    private String password = "password";

    /**
     * 连接地址
     */
    private String url = "jdbc:mysql://localhost:3306/database";

    /**
     * 驱动类名
     */
    private String driverClassName = "com.mysql.cj.jdbc.Driver";

    /**
     * Jdbc驱动路径
     */
    private String jdbcDriverPath = "xxx/mysql-connector-java.jar";

    /**
     * Jdbc驱动包的URL
     */
    private URL driverUrl;

    public URL getDriverUrl() {
        return driverUrl;
    }

    public void setDriverUrl(URL driverUrl) {
        this.driverUrl = driverUrl;
    }

    public String getDriverClassName() {
        return driverClassName;
    }

    public void setDriverClassName(String driverClassName) {
        this.driverClassName = driverClassName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getJdbcDriverPath() {
        return jdbcDriverPath;
    }

    public void setJdbcDriverPath(String jdbcDriverPath) {
        this.jdbcDriverPath = jdbcDriverPath;
    }
}
